import behaviors from "../../../../config/behaviors";

Component({
  behaviors: [behaviors],
  properties: {
    list: Array
  },
  data: {},
  methods: {
    onClick(event) {
      const item = event.currentTarget.dataset.item
      if (item && item.url) {
        wx.navigateTo({
          url: item.url
        })
      }
    }
  }
});
